package com.sky.mapper;

import com.sky.annotation.AutoFill;
import com.sky.entity.OrderDetail;
import com.sky.enumeration.OperationType;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface OrderDetailMapper {
    // @AutoFill(value = OperationType.INSERT)
    void insertBatch(List<OrderDetail> orderDetailList);
    @Select("select * from order_detail where order_id = #{id}")
    List<OrderDetail> getByOrderId(Long id);
}
